package cn.glutnn.subject.application.controller;

import cn.glutnn.subject.infra.entity.UserInfo;
import cn.glutnn.subject.infra.rpc.UserRpc;
import jakarta.annotation.Resource;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Author:   msh
 * Date:     2025/1/22 下午11:55
 * Description:
 */

@RestController
@RequestMapping("/subject/category")
@Slf4j
public class TestFeignController {

    @Resource
    private UserRpc userRpc;

    @GetMapping("/testFeign")
    public void testFeign() {
        UserInfo userInfo = userRpc.getUserInfo("oVrsL673HeMpfURnVojQRMveZcNs");
        log.info("testFeign.userInfo:{}", userInfo);
    }


}

